//
//  ChoosePickerView.h
//  Init
//
//  Created by zhaoshijie on 2018/5/16.
//  Copyright © 2018 zhaoshijie. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CompleteClickBlock)(NSInteger index);

@interface SJChoosePickerView : UIView<UIGestureRecognizerDelegate,UIPickerViewDelegate>


#pragma mark --------------创建变量--------------

//  数据
@property(nonatomic,strong)NSArray *dataArray;

//  确定回调
@property(nonatomic,copy)CompleteClickBlock completeBlock;

//  位置
@property(nonatomic,assign)NSInteger index;

#pragma mark --------------创建控件--------------

//  背景视图
@property(nonatomic,strong)UIView *bgView;


//  头部
@property(nonatomic,strong)UIView *headerView;

//  选择
@property(nonatomic,strong)UIPickerView *pickerView;


#pragma mark --------------方法--------------


/**
 初始化方法
 
 @param dataArray 数据
 @param completeBlock 选中回调
 @return 对象
 */
- (instancetype)initWithDataArray:(NSArray *)dataArray
                    completeBlock:(CompleteClickBlock)completeBlock;

/**
 添加
 */
- (void)addToWindow;


@end
